package online.xybh.qa.service;

import com.github.pagehelper.PageInfo;
import online.xybh.qa.model.CommonQuestion;

/**
 * @Author: xybh
 * @Description:
 * @Date: Created in 22:45 2020/10/23
 * @Modified:
 */
public interface CommonQuestionService {
    void createCommonQuestion(String title, Integer type, String answer, String parse, String[] options, Integer subject, String creator);

    PageInfo<CommonQuestion> queryAllCommonQuestion(Integer page, Integer size);

    online.xybh.qa.dto.CommonQuestion queryCommonQuestionById(String id);

    void deleteCommonQuestionById(String id);
}
